using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.ComponentModel.Design.Serialization;

namespace FormDesigner
{
	public class DefaultDesignerLoader : DesignerLoader
	{
		bool                isLoading = false;
		IDesignerLoaderHost myHost    = null;
		
		public DefaultDesignerLoader()
		{
		}
		
		public override bool Loading 
		{
			get 
			{
				return isLoading;
			}
		}
		
		public override void BeginLoad(IDesignerLoaderHost host)
		{
			isLoading = true;
			myHost    = host; 
			
			// Perform the load...
			host.EndLoad("BaseClassName", false, null);
			isLoading = false;
		}
		
		public override void Dispose()
		{
		}
		
		public override void Flush()
		{
			base.Flush();
		}
	}
}
